package com.jeff.penny.descriptor;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "servlet")
@XmlAccessorType(XmlAccessType.FIELD)
public class ServletDefinition
{
  @XmlElement(name = "servlet-name", required = true)
  private String name;

  @XmlElement(name = "servlet-class", required = true)
  private String className;

  @XmlElement(name = "init-param")
  private List<InitParam> initParams;

  protected ServletDefinition()
  {}

  public String getName()
  {
    return name;
  }

  public void setName(String name)
  {
    this.name = name;
  }

  public String getClassName()
  {
    return className;
  }

  public void setClassName(String className)
  {
    this.className = className;
  }

  public List<InitParam> getInitParams()
  {
    return initParams;
  }

  public void setInitParams(List<InitParam> initParams)
  {
    this.initParams = initParams;
  }
}
